<template>
  <el-breadcrumb separator-class="el-icon-arrow-right">
    <el-breadcrumb-item v-for="(item,index) in breadcrumb" :key="index" :to="item.link ? { path: item.link } : null">{{item.name}}</el-breadcrumb-item>
  </el-breadcrumb>
</template>
<script>
import { mapGetters } from "vuex";
export default {
  computed: {
    ...mapGetters(["breadcrumb"])
  }
};
</script>
<style lang="scss" scoped>
.el-breadcrumb {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ccc;
  margin-bottom: 1rem;
}
</style>
